<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8">
	<META HTTP-EQUIV="Pragma" CONTENT="no-cache"> 
	<META HTTP-EQUIV="Cache-Control" CONTENT="no-cache"> 
	<META HTTP-EQUIV="Expires" CONTENT="0"> 
	<title>按揭楼盘查看</title>
	<meta name="renderer" content="webkit">
	<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
	<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
	<meta name="apple-mobile-web-app-status-bar-style" content="black">
	<meta name="apple-mobile-web-app-capable" content="yes">
	<meta name="format-detection" content="telephone=no">
	<link rel="stylesheet" href="../../layui/css/layui.css" media="all" />
	<link rel="stylesheet" href="../../css/font_eolqem241z66flxr.css" media="all" />
	<link rel="stylesheet" href="../../css/news.css" media="all" />
	<script src="../../layui/js/angular.js"></script>
	<script type="text/javascript" src="../../layui/layui/GetPath.js"></script>
	<script src="../../layui/layui/layui.js" charset="utf-8"></script>
	<script type="text/javascript" src="../../layui/js/fy.js"></script>
	<script type="text/javascript" src="../../layui/layui/layer.ext.js"></script>
	<script type="text/javascript" src="../../layui/lay/modules/layer.js"></script>
	<script type="text/javascript" src="../../layui/layui.js"></script>
	<script>
		layui.use('form', function(){
			var form = layui.form();  
		});
	</script>
	<!-- JQuery 的遮罩层 -->
	<style type="text/css">     
    .mask {       
            position: absolute; top: 0px; filter: alpha(opacity=60); 
            z-index: 1002; left: 0px;              
			background:url(../../layui/layui/img/jz.gif) no-repeat center rgba(0,0,0,0.5) ;
		  	background-size:30px 30px;
			background-repeat: no-repeat;
			background: 
        }     
	</style>   
</head>
<body class="childrenBody">
	<div align="center" id="mask" class="mask"></div> 
	<div ng-app="myApp" ng-controller="customersCtrl" align="center"> 
	<blockquote class="layui-elem-quote news_search" style="text-align: left;">
	<form class="layui-form">
		地区名称:
  		<div class="layui-inline">
				<select name="msgColl" id="DQMC">
					<option value="YB">延边州</option>
					<option value="YB01">延吉</option>
					<option value="YB02">龙井</option>
					<option value="YB03">图们</option>
					<option value="YB04">汪清</option>
					<option value="YB05">敦化</option>
					<option value="YB06">和龙</option>
					<option value="YB07">珲春</option>
					<option value="YB08">安图</option>
					<option value="YB09">长白山</option>
					<option value="YB10">延吉友谊路</option>
			    </select>
		</div>
	    <div class="layui-inline" align="left">
	      <label class="layui-form-label" style="width: 80px">楼盘名称:</label>
	      <div class="layui-input-inline">
	        <input class="layui-input" id="LPMC" type="text" style="width: 260px" contentEditable="false">
	      </div>
	      <input ng-click="cx()" type="button" class="layui-btn layui-btn-primary" value="查&nbsp;&nbsp;&nbsp;&nbsp;询">
	    </div>
	    </form>
	</blockquote>
	<div class="layui-form news_list">
	  	<table class="layui-table">
				<tr style="background-color:#f1f1f1">
					<td>地区名称</td>
					<td>项目楼盘名称</td>
					<td>坐落位置</td>
					<td>公司名称</td>
					<td ng-hide="true">项目开发分期情况</td>
					<td>开工时间</td>
					<td ng-hide="true">工程当前进度</td>
				</tr> 
		    	<tr ng-repeat="x in names" align="center" >
		    	<td>{{ x.DQMC }}</td>
				<td style="text-align: left;">{{ x.XMLPMC }}</td>
				<td style="text-align: left;">{{ x.LPZLWZ }}</td>
				<td style="text-align: left;">{{ x.KFGSMC }}</td>
				<td ng-hide="true">{{ x.XMKFFQQK}}</td>
				<td style="text-align: left;">{{ x.KGSJ}}</td>	
				<td  ng-hide="true">{{ x.GCDQJD}}</td>
				
			</tr>
		</table>
		</div>
		<div class="layui-btn-group">
			<button class="layui-btn layui-btn-primary layui-btn-sm"
				ng-click="Sy()">首页</button>
			<button class="layui-btn layui-btn-primary layui-btn-sm"
				ng-click="Previous()">上一页</button>
			<button ng-repeat="page in pageList" class="layui-btn layui-btn-primary layui-btn-sm"
				ng-click="selectPage(page)">{{ page }}</button>
			<button class="layui-btn layui-btn-primary layui-btn-sm"
				ng-click="Next()">下一页</button>
			<button class="layui-btn layui-btn-primary layui-btn-sm"
				ng-click="Wy()">尾页</button>
			<button class="layui-btn layui-btn-primary layui-btn-sm "
				>{{selPage}}/{{pages}}</button>
		</div>
	</div>
	<script type="text/javascript" src="../../layui/layui.js"></script>
	<script type="text/javascript" src="../message/message.js"></script>
	<script type="text/javascript" src="../../layui/layui/layui.js"></script>
	<script type="text/javascript" src="../../layui/layui/jquery-3.2.1.min.js"></script>
	<script type="text/javascript">
		function s(){     
        $("#mask").css("height",$(document).height());     
        $("#mask").css("width",$(document).width());     
        $("#mask").show();     
	    }  
	    //隐藏遮罩层  
	    function h(){     
	          
	        $("#mask").hide();     
	    }  
	</script>
	<script>
		layui.use('layer', function(){
  			var layer = layui.layer;
		});              
	</script>
	<script>
			var a;
			var app = angular.module('myApp', []);
			 app.directive('loading', function(){  
		        return {  
		            restrict: 'E',  
		            transclude: true,  
		            template: '<div ng-show="loading" class="loading" id="allDiv"  style="position:fixed; top:0px; left:0px; width:100%; height:100%; display:none; background-color:#000; opacity: 0.5; z-index:99999;">'  
		            +'<img alt="" src="../../layui/layui/img/jz.gif" style="vertical-align: middle;width:30px; height:30px; position: absolute; top:50%; left:50%; margin-top: -50px; margin-left:-50px;"/>'
		            +'</div>',  
		            link: function (scope, element, attr) {  
		                scope.$watch('loading', function (val) {  
		                    if (val){  
		                        document.getElementById("allDiv").style.display = "block";  
		                    }else{  
		                        document.getElementById("allDiv").style.display = 'none';  
		                    }  
		                });  
		            }  
		        };
		    });  
			    app.controller('customersCtrl', function($scope, $http) {
			    $scope.setLoading =function(){  
				    if($scope.loading ==undefined || $scope.loading ==false){  
				        $scope.loading=true;  
				    }else{  
				        $scope.loading=false;  
				    };
				};
			    $scope.cx = function () {
			    	var DQMC=document.getElementById("DQMC").value;
			    	var LPMC=document.getElementById("LPMC").value;
				   		$scope.setLoading();
		      			$scope.params={DQMC:document.getElementById("DQMC").value,LPMC:document.getElementById("LPMC").value},
					s();
					$http({
						url:getPath() + "/wsyyt/ajlpcxcontroller/cx",
						method:'post',
						params:$scope.params
					}).then(
						function(res) {
						h();
							$scope.data = res.data.data;
							$scope.setLoading();
							if(res.data.code==1){
								$scope.names="";
								$scope.selPage="";
								$scope.selectPage="";
								$scope.pages="";
								$scope.page="";
								$scope.pageList="";
								//layer.msg('提示：'+res.data.CW,{icon: 5});
								layer.alert('提示：'+res.data.CW, {
								      skin: 'layui-layer-molv' //样式类名  自定义样式
								     ,closeBtn: 1    // 是否显示关闭按钮
								      ,anim: 1 //动画类型
								     ,btn: ['确认'] //按钮
								      ,icon: 5    // icon
								     ,btn2:function(){
										
								     }});			
								return null;						
								}
								if(res.data==""){
								$scope.names="";
								$scope.selPage="";
								$scope.selectPage="";
								$scope.pages="";
								$scope.page="";
								$scope.pageList="";
								//layer.msg('提示：用户没有提取信息',{icon: 5});		
								layer.alert('提示：用户没有提取信息', {
								      skin: 'layui-layer-molv' //样式类名  自定义样式
								     ,closeBtn: 1    // 是否显示关闭按钮
								      ,anim: 1 //动画类型
								     ,btn: ['确认'] //按钮
								      ,icon: 5    // icon
								     ,btn2:function(){
										
								     }});	
								return null;						
								}
								if($scope.data.RETDATA==null){
									console.log(res);
									a = res.data.CNT;
									feny($scope.data);
								}else{
									console.log(res);
									a = res.data.CNT;
									feny($scope.data.RETDATA);
								}
							});			
						
					};
				});
</script>
</body>
</html>